package client.comm.baoding.ui

import client.comm.baoding.R
import client.comm.baoding.adapter.page.SfjlFragmentPageAdapter
import client.comm.baoding.databinding.ActivitySfjlBinding
import client.comm.baoding.ui.vm.SfjlViewModel
import client.comm.baoding.BaseMiddleActivity

class SfJlActivity : BaseMiddleActivity<SfjlViewModel, ActivitySfjlBinding>() {
    override fun getLayout(): Int {
        return R.layout.activity_sfjl
    }

    val adapter: SfjlFragmentPageAdapter by lazy {
        SfjlFragmentPageAdapter(supportFragmentManager)
    }

    override fun initViewModel(): SfjlViewModel = createViewModel()

    override fun initView() {
        binding.event = this
        binding.viewPager.adapter = adapter

        binding.tabLayout.setupWithViewPager(binding.viewPager)
    }

}